package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author : [chg]
 * @className : UserAccountLog
 * @description : []
 * @createTime : [2025/7/14 10:31]
 */
//@Entity
@Data
@Table(name = "tb_user_account_log")
@org.hibernate.annotations.Table(appliesTo = "tb_user_account_log", comment = "用户账号记录")
public class UserAccountLog extends DbBase {
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '账号ID'")
    private Long accountId;

    @Column(columnDefinition = "int DEFAULT 0 COMMENT '流水类型（1-充值，2-订单收款，3-集装箱卸货费，4-订单运费 5-订单高速费 6-订单卸货费，7-订单其他费用）'")
    private Integer type; // 订单状态

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '集装箱ID'")
    private Long containerId; // 关联集装箱ID

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '集装箱订单ID'")
    private Long containerOrderId;

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '订单费用ID'")
    private Long orderCostId;

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '订单收款ID'")
    private Long orderAmountId;

    @Column(columnDefinition = "decimal(10,2) DEFAULT NULL COMMENT '变化金额'")
    private BigDecimal amount;
    @Column(columnDefinition = "decimal(10,2) DEFAULT NULL COMMENT '余额'")
    private BigDecimal balance;
    @Column(columnDefinition = "int DEFAULT 0 COMMENT '是否删除（0-否，1-是）'")
    private Integer delFlag;
    @Column(columnDefinition = "varchar(1000) DEFAULT NULL  COMMENT '备注说明'")
    private String remark; // 操作说明

}
